# -*- coding:utf-8 -*-


def fib2(number: int) -> int:  # 最大值
    a, b = 0, 1
    while a < number:
        # print(a, end=' ')
        yield a
        a, b = b, a + b

